package com.orderVideo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 用户表
 * @TableName user
 */
@TableName(value ="user")
@Data
public class User implements Serializable {
    /**
     * 
     */
    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    /**
     * 用户名称
     */
    @TableField(value = "username")
    private String username;

    /**
     * 用户昵称
     */
    @TableField(value = "nick_name")
    private String nickName;

    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 用户类型（admin/user）
     */
    @TableField(value = "user_type")
    private String userType;

    /**
     * 用户头像(Base64格式)
     */
    @TableField(value = "user_img")
    private String userImg;

    @TableField(value = "user_money")
    private BigDecimal userMoney;

    @TableField(exist = false)
    private String token;

    @TableField(value = "today_earnings")
    private BigDecimal todayEarnings;

    @TableField(value = "total_earnings")
    private BigDecimal totalEarnings;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}